<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/AdminBase.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<title>GI ADMIN</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<?if(0){?>
<link href="css/admin_all.css" rel="stylesheet" type="text/css" />
<?}?>
<link href="<?=$TPL[url]?>css/admin_all.css" rel="stylesheet" type="text/css" />
<script src="<?=$TPL[url]?>js/admin_all.js" language="javascript"></script>
<script>
var imgpath = '<?=$TPL[url]?>images';
</script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body>
<div class="tt">
<?if($tabs){?>
  <ul class="nav3">
  <?
  foreach($tabs as $t_name => $t_url ){
  ?>
  <li><a href="<?=$t_url?>"><?=$t_name?></a></li>
  <?}?>
  </ul>
<?}?>
<?if($tip){?>
  <div class="c"></div>
  <h3>功能提示</h3>
  <div class="tr5"><?=$tip?></div>
<?}?>
 <!-- InstanceBeginEditable name="Content" -->
  <form action="<?=$this->url('Save')?>" method="post" enctype="multipart/form-data">
    <h2><b><?=$TPL[action] == 'Create'? "添加":"编辑"?>
    专题</b></h2>
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr class="tr3">
        <th nowrap="nowrap">专题名称</th>
        <td width="90%"><?html_textbox('name',$data['name'])?></td>
      </tr>
      <tr class="tr3">
        <th nowrap="nowrap">专题简介</th>
        <td><?html_textarea('intro',$data['intro'],60,4)?></td>
      </tr>
      <tr class="tr3">
        <th nowrap="nowrap">顶部横栏图片</th>
        <td><?html_filefield('top_banner','/experts/Upload/specials/' . $data['top_banner'])?></td>
      </tr>
      <tr class="tr3">
        <th nowrap="nowrap">专题背景</th>
        <td><?html_editor('background',$data['background'],'Simple','97%',"300px")?></td>
      </tr>
      <tr class="tr3">
        <th nowrap="nowrap">论坛简介</th>
        <td><?html_editor('forum_intro',$data['forum_intro'],'Simple','97%',"300px")?></td>
      </tr>
      <tr class="tr3">
        <th nowrap="nowrap">网络支持</th>
        <td><?html_editor('net_support',$data['net_support'],'Simple','97%',"300px")?></td>
      </tr>
      <tr class="tr3">
        <th nowrap="nowrap">媒体报道</th>
        <td><?html_editor('media',$data['media'],'Simple','97%',"300px")?></td>
      </tr>
      <tr class="tr3">
        <th nowrap="nowrap">引导菜单</th>
        <td>格式：菜单名称===浏览地址, 一个菜单一行。<br />        <?html_textarea('top_nav',$data['top_nav'],60,4)?></td>
      </tr>
    </table>
    <br />
    <center>
      <input name="id" type="hidden" id="id" value="<?=$data[id]?>" />
      <input name="submit" type="submit" class="btn" value='提 交' />
      <input name="goback" type="button" class="btn" value='返回' onclick="history.go(-1)" />
    </center>
  </form>
  
  <!-- InstanceEndEditable --></div>
<div class="c"></div>
<div class="bottom">
<?include("Footer")?>
</div>
</body>
<!-- InstanceEnd --></html>
<script type="text/javascript" src="<?=$TPL[url]?>../js/swfupload/swfupload.js"></script>
<script type="text/javascript" src="<?=$TPL[url]?>../js/swfupload/handlers.js"></script>
<script type="text/javascript">
		var swfu;
		window.onload = function () {
			swfu = new SWFUpload({
				// Backend Settings
				upload_url: "<?=_url('UploadFiles','Save','dir=Specials')?>",
				post_params: {"PHPSESSID": "<?= session_id(); ?>"},

				// File Upload Settings
				file_size_limit : "2 MB",	// 2MB
				file_types : "*.jpg",
				file_types_description : "JPG Images",
				file_upload_limit : "0",

				// Event Handler Settings - these functions as defined in Handlers.js
				//  The handlers are not part of SWFUpload but are part of my website and control how
				//  my website reacts to the SWFUpload events.
				file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess,
				upload_complete_handler : uploadComplete,

				// Button Settings
				button_image_url : "<?=$TPL[url]?>../js/swfupload/SmallSpyGlassWithTransperancy_17x18.png",
				button_placeholder_id : "spanButtonPlaceholder",
				button_width: 300,
				button_height: 18,
				button_text : '<span class="button">选择要上传的图片(可选择多幅,最大 2MB )</span></span>',
				button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10pt; }',
				button_text_top_padding: 0,
				button_text_left_padding: 18,
				button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
				button_cursor: SWFUpload.CURSOR.HAND,
				
				// Flash Settings
				flash_url : "<?=$TPL[url]?>../js/swfupload/swfupload.swf",

				custom_settings : {
					upload_target : "divFileProgressContainer"
				},
				
				// Debug Settings
				debug: false
			});
		};
	</script>